<template>
  <div>
    <div class="header">
      <img src="@/assets/images/return.png" class="header_img" @click="back"/>
      <div class="title">工作年限</div>
      <div class="save" @click="saveBack">提交</div>
    </div>
    <div class="inputContent">
      <input type="number" class="inputGroup" v-model="workLength"/>
    </div>
  </div>
</template>

<script>
  import TextArea from './TextArea'
  export default {
    name: "WorkTime",
    data() {
      return {
        workLength: null
      }
    },
    methods: {
      back() {
        this.$router.back()
      },
      saveBack() {
        this.$store.commit('setWorkLength', this.workLength)
        this.$router.back()
      }
    }
  }
</script>

<style scoped>
  .header {
    box-sizing: border-box;
    position: relative;
    display: flex;
    height: 90px;
    background-color: #8ec43e;
    align-items: center;
    padding: 0 30px;
  }

  .header_img {
    width: 17px;
    height: 30px;
  }

  .title {
    text-align: center;
    flex: 1;
    font-size: 30px;
    color: #ffff;
  }

  .save {
    font-size: 28px;
    color: #ffffff;
  }

  .inputContent {
    position: relative;
    display: flex;
  }

  .inputGroup {
    box-sizing: border-box;
    height: 80px;
    flex: 1;
    border-radius: 4px;
    margin: 30px;
    font-size: 24px;
    font-weight: 400;
    color: rgba(153, 153, 153, 1);
    padding: 8px;
  }
</style>
